package sample.projectcustomconfig.customsourceconfig;

import io.spring.initializr.generator.language.CompilationUnit;
import io.spring.initializr.generator.language.SourceCode;
import io.spring.initializr.generator.language.SourceCodeWriter;
import io.spring.initializr.generator.language.TypeDeclaration;
import io.spring.initializr.generator.project.ProjectDescription;
import org.springframework.beans.factory.ObjectProvider;

import java.util.function.Supplier;

public class MyTestControllerContributor<T extends TypeDeclaration, C extends CompilationUnit<T>, S extends SourceCode<T, C>> extends CustomSourceCodeProjectContributor<T, C, S> {
    public MyTestControllerContributor(ProjectDescription description, Supplier<S> sourceFactory, SourceCodeWriter<S> sourceWriter, ObjectProvider<MethodCustomizer<?>> methodCustomizers) {
        super(description, sourceFactory, sourceWriter, methodCustomizers, () -> new ClassInfo("MyTestController", "controller"));
    }
}
